// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * CatalogProductEntityMediaGalleryValue generated by hbm2java
 */
@Entity
@Table(name = "catalog_product_entity_media_gallery_value", catalog = "magento")
public class CatalogProductEntityMediaGalleryValue implements
		java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private CatalogProductEntityMediaGalleryValueId id;
	private CatalogProductEntityMediaGallery catalogProductEntityMediaGallery;
	private CoreStore coreStore;
	private String label;
	private Integer position;
	private short disabled;

	public CatalogProductEntityMediaGalleryValue() {
	}

	public CatalogProductEntityMediaGalleryValue(
			CatalogProductEntityMediaGalleryValueId id,
			CatalogProductEntityMediaGallery catalogProductEntityMediaGallery,
			CoreStore coreStore, short disabled) {
		this.id = id;
		this.catalogProductEntityMediaGallery = catalogProductEntityMediaGallery;
		this.coreStore = coreStore;
		this.disabled = disabled;
	}

	public CatalogProductEntityMediaGalleryValue(
			CatalogProductEntityMediaGalleryValueId id,
			CatalogProductEntityMediaGallery catalogProductEntityMediaGallery,
			CoreStore coreStore, String label, Integer position, short disabled) {
		this.id = id;
		this.catalogProductEntityMediaGallery = catalogProductEntityMediaGallery;
		this.coreStore = coreStore;
		this.label = label;
		this.position = position;
		this.disabled = disabled;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "valueId", column = @Column(name = "value_id", nullable = false)),
			@AttributeOverride(name = "storeId", column = @Column(name = "store_id", nullable = false)) })
	public CatalogProductEntityMediaGalleryValueId getId() {
		return this.id;
	}

	public void setId(CatalogProductEntityMediaGalleryValueId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "value_id", nullable = false, insertable = false, updatable = false)
	public CatalogProductEntityMediaGallery getCatalogProductEntityMediaGallery() {
		return this.catalogProductEntityMediaGallery;
	}

	public void setCatalogProductEntityMediaGallery(
			CatalogProductEntityMediaGallery catalogProductEntityMediaGallery) {
		this.catalogProductEntityMediaGallery = catalogProductEntityMediaGallery;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false, insertable = false, updatable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "label")
	public String getLabel() {
		return this.label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	@Column(name = "position")
	public Integer getPosition() {
		return this.position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}

	@Column(name = "disabled", nullable = false)
	public short getDisabled() {
		return this.disabled;
	}

	public void setDisabled(short disabled) {
		this.disabled = disabled;
	}

}
